#!/usr/bin/python
from google.appengine.api import users

class Links():
    links = ''
    
    def __init__(self):
        self.set()
    
    def set(self):
        self.links += '<li><a href="/">Home</a></li>'
        self.links += '<li><a href="/about">About</a></li>'
        
        if users.is_current_user_admin():
            self.links += '<li>Admin\n<ul>'
            self.links += '<li><a href="/admin/schools">Add Schools</a></li>\n'
            self.links += '</ul>\n</li>'
    
    def get(self):
        return self.links